package com.zyz.I_多线程.线程池;

import java.util.concurrent.Callable;

/**
 * @author: vick
 * @Date: 2025/3/24
 * @Description:
 * @version: 1.0
 */
public class NumberThread2 implements Callable {
    @Override
    public Object call() throws Exception {
        int sum = 0;
        for (int i = 0; i <= 100 ; i++) {
            if (i % 2 == 0) {
                sum += i;
            }
        }
        return sum;
    }
}
